package ar.edu.itba.it.raytracer.scene

import ar.edu.itba.it.raytracer.engine.Color

case class Material(color: Color, reflection: Double, diffuse: Double, specular: Double) {
  require(reflection >= 0 && reflection <= 1 && diffuse >= 0 && diffuse <= 1)
  lazy val absorption = 1 - reflection
}
